package com.pronosticnews.server.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pronosticnews.client.services.SportService;
import com.pronosticnews.server.domain.dao.SportDao;
import com.pronosticnews.server.domain.model.Sport;
import com.pronosticnews.shared.model.SportDto;

import fr.ysa.persistence.IDao;
import fr.ysa.services.ImplService;

@Service("sportService")
@Transactional
public class SportServiceImpl extends ImplService<Sport, SportDto> implements
		SportService {

	@Autowired
	SportDao sportDao;

	@Override
	public IDao<Sport> getDao() {
		return sportDao;
	}

	@Override
	public Class<Sport> getEntityClass() {
		return Sport.class;
	}

	@Override
	public Class<SportDto> getEntityDtoClass() {
		return SportDto.class;
	}

}
